package com.schoolgard.entitybean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "JOB_MODE")
public class JobMode implements java.io.Serializable {

	// Fields

	private Long id;
	private String name;
	private String enable;
	private String t1;
	private String t2;
	private String t3;
	private String t4;
	private String t5;
	private String t6;
	private String t7;
	/*private Set<TimeArrayToDevice> timeArrayToDevices = new HashSet<TimeArrayToDevice>(
			0);
	private Set<VisitorToDevice> visitorToDevices = new HashSet<VisitorToDevice>(
			0);
	private Set<StudentToDevice> studentToDevices = new HashSet<StudentToDevice>(
			0);
	private Set<BackupToServer> backupToServers = new HashSet<BackupToServer>(0);
	private Set<TimingToDevice> timingToDevices = new HashSet<TimingToDevice>(0);
	private Set<UpgradeToDevice> upgradeToDevices = new HashSet<UpgradeToDevice>(
			0);
	private Set<CardLogToDevice> cardLogToDevices = new HashSet<CardLogToDevice>(
			0);
	private Set<PictureLogToDevice> pictureLogToDevices = new HashSet<PictureLogToDevice>(
			0);
	private Set<ParamServerToDevice> paramServerToDevices = new HashSet<ParamServerToDevice>(
			0);*/

	@Id
	@Column(name = "ID", unique = true, nullable = false, precision = 10, scale = 0)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "NAME", length = 64)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "ENABLE", length = 1)
	public String getEnable() {
		return this.enable;
	}

	public void setEnable(String enable) {
		this.enable = enable;
	}

	@Column(name = "T1", length = 100)
	public String getT1() {
		return this.t1;
	}

	public void setT1(String t1) {
		this.t1 = t1;
	}

	@Column(name = "T2", length = 100)
	public String getT2() {
		return this.t2;
	}

	public void setT2(String t2) {
		this.t2 = t2;
	}

	@Column(name = "T3", length = 100)
	public String getT3() {
		return this.t3;
	}

	public void setT3(String t3) {
		this.t3 = t3;
	}

	@Column(name = "T4", length = 100)
	public String getT4() {
		return this.t4;
	}

	public void setT4(String t4) {
		this.t4 = t4;
	}

	@Column(name = "T5", length = 100)
	public String getT5() {
		return this.t5;
	}

	public void setT5(String t5) {
		this.t5 = t5;
	}

	@Column(name = "T6", length = 100)
	public String getT6() {
		return this.t6;
	}

	public void setT6(String t6) {
		this.t6 = t6;
	}

	@Column(name = "T7", length = 100)
	public String getT7() {
		return this.t7;
	}

	public void setT7(String t7) {
		this.t7 = t7;
	}

	/*@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "jobMode")
	public Set<TimeArrayToDevice> getTimeArrayToDevices() {
		return this.timeArrayToDevices;
	}

	public void setTimeArrayToDevices(Set<TimeArrayToDevice> timeArrayToDevices) {
		this.timeArrayToDevices = timeArrayToDevices;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "jobMode")
	public Set<VisitorToDevice> getVisitorToDevices() {
		return this.visitorToDevices;
	}

	public void setVisitorToDevices(Set<VisitorToDevice> visitorToDevices) {
		this.visitorToDevices = visitorToDevices;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "jobMode")
	public Set<StudentToDevice> getStudentToDevices() {
		return this.studentToDevices;
	}

	public void setStudentToDevices(Set<StudentToDevice> studentToDevices) {
		this.studentToDevices = studentToDevices;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "jobMode")
	public Set<BackupToServer> getBackupToServers() {
		return this.backupToServers;
	}

	public void setBackupToServers(Set<BackupToServer> backupToServers) {
		this.backupToServers = backupToServers;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "jobMode")
	public Set<TimingToDevice> getTimingToDevices() {
		return this.timingToDevices;
	}

	public void setTimingToDevices(Set<TimingToDevice> timingToDevices) {
		this.timingToDevices = timingToDevices;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "jobMode")
	public Set<UpgradeToDevice> getUpgradeToDevices() {
		return this.upgradeToDevices;
	}

	public void setUpgradeToDevices(Set<UpgradeToDevice> upgradeToDevices) {
		this.upgradeToDevices = upgradeToDevices;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "jobMode")
	public Set<CardLogToDevice> getCardLogToDevices() {
		return this.cardLogToDevices;
	}

	public void setCardLogToDevices(Set<CardLogToDevice> cardLogToDevices) {
		this.cardLogToDevices = cardLogToDevices;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "jobMode")
	public Set<PictureLogToDevice> getPictureLogToDevices() {
		return this.pictureLogToDevices;
	}

	public void setPictureLogToDevices(
			Set<PictureLogToDevice> pictureLogToDevices) {
		this.pictureLogToDevices = pictureLogToDevices;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "jobMode")
	public Set<ParamServerToDevice> getParamServerToDevices() {
		return this.paramServerToDevices;
	}

	public void setParamServerToDevices(
			Set<ParamServerToDevice> paramServerToDevices) {
		this.paramServerToDevices = paramServerToDevices;
	}*/

}